package com.hb.trans.mvp.model

import com.basiclib.base.BaseModel
import com.hb.trans.api.EndPoints
import com.hb.trans.api.TRANS_SERVER_MY_PATH
import com.hb.trans.api.TRANS_SERVER_PATH
import com.hb.trans.mvp.contract.SchoolInfoContract
import javax.inject.Inject

class SchoolInfoModel @Inject constructor(var api: EndPoints) : BaseModel(), SchoolInfoContract.Model {

    override fun getSchoolDetail(schoolId: String) =
        api.getSchoolDetail("${TRANS_SERVER_PATH}schInfo/getSchAndCoa", schoolId)

    override fun getEnrollCount(inscode: String) =
        api.enrollCount("${TRANS_SERVER_MY_PATH}enroll/enrollCount", inscode)
}
